<div class="bg_greenyellow round_10 quarter shadow_in_0">
    <ul class="rightmenu">
        <li><a href="<?php echo $this->url(array('action'=>'index','controller'=>'network','module'=>'admin'),null,true); ?>">Sieć</a></li>
        <li><a href="<?php echo $this->url(array('action'=>'nodes','controller'=>'network','module'=>'admin'),null,true); ?>">Lokalizacje</a></li>
        <li><a href="<?php echo $this->url(array('action'=>'arcs','controller'=>'network','module'=>'admin'),null,true); ?>">Połączenia</a></li>
    </ul>    
</div>
    
    
<div class="threequarter vpad_10 last fixed s">
     
    <h6 class ="bg_mediumblue round_5 shadow_out_4">Lista połączeń 
    <?
    if(isset($this->from)) {
        echo " OD: ".$this->from." ";
    }
    if(isset($this->to)) {
        echo " DO: ".$this->to." ";
    }
    
    if(isset($this->node)) {
        echo " z: ".$this->node." ";
    }
    ?></h6> 
    <?php if(empty($this->arcs)){ ?>
    
    <div class="warning"><p>Brak Połączeń</p><div></div></div>
    <?php } else { ?>
<table class="plain" width="100%">
   <caption>
       Połączenia
   </caption>
   <thead>
      <tr>
         <th>&nbsp;</th>
         <th scope="col">Od</th>
         <th scope="col">Do </th>
         <th scope="col"></th>
         <th scope="col"></th>
      </tr>
   </thead>
   <tfoot>
      <tr>
         <th>&nbsp;</th>
         <th>&nbsp;</th>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
      </tr>
   </tfoot>
   <tbody>
       <?php foreach($this->arcs as $arc){ ?>
      <tr>
         <th scope="row"><?php echo $arc->getNetworkArc_id(); ?></th>
         <td>
            <a href='<?php echo $this->url(array('action'=>'arcs','controller'=>'network','module'=>'admin','from'=>$arc->getPredecessor()),null,true); ?>'>    
                <?php echo $arc->getPredecessorName() ?>
            </a>
         </td>
         <td>
            <a href='<?php echo $this->url(array('action'=>'arcs','controller'=>'network','module'=>'admin','to'=>$arc->getSuccessor()),null,true); ?>'>    
                <?php echo $arc->getSuccessorName(); ?>
            </a>    
         </td>
         <td><a class="edit_button grey styled_button" href='<?php echo $this->url(array('action'=>'edit-arc','controller'=>'network','module'=>'admin','id'=>$arc->getNetworkArc_id()),null,true); ?>'>Edytuj</a></td>
         <td><a class="delete_button grey styled_button" href='<?php echo $this->url(array('action'=>'delete-arc','controller'=>'network','module'=>'admin','id'=>$arc->getNetworkArc_id()),null,true); ?>'>Kasuj</a></td>
      </tr> 
      <?php } ?>

    
   </tbody>
</table>
    <?php } ?>
    <a class="cancel_button grey styled_button" href='<?php echo $this->url(array('action'=>'arcs','controller'=>'network','module'=>'admin'),null,true); ?>'>Reset</a>
    <hr />  
        <?php echo $this->paginationControl($this->arcs,
                                    'Sliding',
                                    'utility/my_paginator_helper.phtml'); ?>
    <br />
    <h6 class ="bg_mediumblue round_5 shadow_out_4">Nowe połączenie</h6>
    <?php echo $this->form;?>   
</div>    